package com.winit.core.task;

/**
 * Created by wangjian on 16/8/9.
 */
public class TaskNode {

    public Task task;
    public boolean needFailConfirm;
    public Integer index = -1;//在list中的位置 从0开始 list中存在多个TaskNode时有效

    public TaskNode(Task task,boolean needFailConfirm){
        this.task = task;
        this.needFailConfirm = needFailConfirm;
    }

    public TaskNode(Task task,boolean needFailConfirm,Integer index){
        this.task = task;
        this.needFailConfirm = needFailConfirm;
        this.index = index;
    }

}
